home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.plaf.basic;
-
- import java.awt.event.ItemEvent;
- import java.awt.event.ItemListener;
-
- public class BasicComboPopup$ItemHandler implements ItemListener {
- // $FF: synthetic field
- private final BasicComboPopup this$0;
-
- protected BasicComboPopup$ItemHandler(BasicComboPopup var1) {
- this.this$0 = var1;
- }
-
- public void itemStateChanged(ItemEvent var1) {
- if (var1.getStateChange() == 1 && !this.this$0.valueIsAdjusting) {
- this.this$0.valueIsAdjusting = true;
- this.this$0.syncListSelectionWithComboBoxSelection();
- this.this$0.valueIsAdjusting = false;
- this.this$0.list.ensureIndexIsVisible(this.this$0.comboBox.getSelectedIndex());
- }
-
- }
- }
-